#-*- coding: utf-8 -*-

x = 0
x += 1
print x

for i in range( 0, 5, 1 ):
	print str( i ) + str( " " ),
	
print ""
	
for i in range( 0, 5, 1 ):
	print str( "*" ) + str( " " ),

print ""
	
for i in range( 5, 0, -1 ):
	print str( "*" ) + str( " " ),

print ""

for i in range( 0, 9, 2 ):
	print str( i ) + str( " " ),